package com.logos.funRefe;

import java.util.Arrays;
import java.util.Comparator;

public class test01 {

    public static void main(String[] args) {
        Integer[] arr = {3,4,5,1,2,6};
        Arrays.sort(arr,test01::myCompare);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }

    public static int myCompare(int a,int b){
        return b-a;
    }
}
